﻿@*<div class="panelBar">
    <ul class="toolBar">
        <li><a class="add" href="admin/@ViewData["CurrentController"]/Create/0?action=add" target="navTab" title="添加-@ViewBag.ViewTitle">
            <span>添加</span></a></li>
        <li><a class="edit" href="admin/@ViewData["CurrentController"]/Create/{@ViewData["CurrentController"]_id}?action=edit" target="navTab" warn="请选择一个用户" title="修改-@ViewBag.ViewTitle">
            <span>修改</span></a></li>
        <li><a class="delete" href="admin/@ViewData["CurrentController"]/Delete/{@ViewData["CurrentController"]_id}" target="ajaxTodo" title="确定要删除吗？" warn="请选择一个用户">
            <span>删除</span></a></li>
    </ul>
</div>
*@
@{
    var currentButtons = ViewData["CurrentPageButtons"] as List<HanGu.Entity.VRolePurview>;
    }
    <div class="panelBar">
    <ul class="toolBar">
    @foreach (var item in currentButtons)
    {
        <li><a class="@(item.CssClass??"add")" href='@item.Url?OpID=@item.ID&@item.ParmFormat.Trim()' target="@(item.Target??"navTab")" title="@item.Title" @(!string.IsNullOrEmpty(item.Warn)?"Warn="+item.Warn:string.Empty) onclick="@item.OnCilck" ref="@item.Url">
            <span>@item.ModuleName</span></a></li>
    }
    </ul>
</div>
